package com.navi.loaddata.core.mysqlEntity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "m_bis_user_d", schema = "ch_qms", catalog = "")
public class MBisUserD {
    private String userId;
    private String password;
    private String userName;
    private String shopId;
    private String deptId;
    private String levelId;
    private String phoneId;
    private String mailId;
    private String evtUser;
    private Timestamp evtTimestamp;
    private String unqSeqId;

    @Id
    @Column(name = "USER_ID")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "PASSWORD")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Basic
    @Column(name = "USER_NAME")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Basic
    @Column(name = "SHOP_ID")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "DEPT_ID")
    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    @Basic
    @Column(name = "LEVEL_ID")
    public String getLevelId() {
        return levelId;
    }

    public void setLevelId(String levelId) {
        this.levelId = levelId;
    }

    @Basic
    @Column(name = "PHONE_ID")
    public String getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(String phoneId) {
        this.phoneId = phoneId;
    }

    @Basic
    @Column(name = "MAIL_ID")
    public String getMailId() {
        return mailId;
    }

    public void setMailId(String mailId) {
        this.mailId = mailId;
    }

    @Basic
    @Column(name = "EVT_USER")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "EVT_TIMESTAMP")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "UNQ_SEQ_ID")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MBisUserD mBisUserD = (MBisUserD) o;
        return Objects.equals(userId, mBisUserD.userId) &&
                Objects.equals(password, mBisUserD.password) &&
                Objects.equals(userName, mBisUserD.userName) &&
                Objects.equals(shopId, mBisUserD.shopId) &&
                Objects.equals(deptId, mBisUserD.deptId) &&
                Objects.equals(levelId, mBisUserD.levelId) &&
                Objects.equals(phoneId, mBisUserD.phoneId) &&
                Objects.equals(mailId, mBisUserD.mailId) &&
                Objects.equals(evtUser, mBisUserD.evtUser) &&
                Objects.equals(evtTimestamp, mBisUserD.evtTimestamp) &&
                Objects.equals(unqSeqId, mBisUserD.unqSeqId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(userId, password, userName, shopId, deptId, levelId, phoneId, mailId, evtUser, evtTimestamp, unqSeqId);
    }
}
